package com.dmooo.yxmmerchant.view.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;
import com.dmooo.yxmmerchant.domain.BankListBean;
import com.dmooo.yxmmerchant.domain.MyBankBean;

import java.util.List;
import java.util.Map;

public class BankContract {
    public interface BankView extends BaseView {
        void showBankTypeList(List<BankListBean.BankItem> bankListBeans);
        void showMyBankList(List<MyBankBean.BankItem> bankBeans);
        void addBankSuccess();
        void delBankSuccess(int index);
    }
    public interface BankMdl{
        void addBank(Map<String, Object> map, HttpOnNextListener listener);
        void deleteBank(String token, String id, int index, HttpOnNextListener listener);
        void getBankType(HttpOnNextListener listener);
        void getMyBankList(String token, HttpOnNextListener listener);
    }
    public interface BankPtr{
        void addBank(Map<String, Object> map);
        void deleteBank(String token, String id, int index);
        void getBankType();
        void getMyBankList(String token);
    }
}
